package com.zhu.androidsample.common;

import android.app.Application;

import com.facebook.drawee.backends.pipeline.Fresco;
import com.zhu.androidsample.util.SharedPreferencesUtil;
import com.zhu.androidsample.util.ToastUtil;
import com.zhu.androidsample.util.VolleyUtil;

/**
 * Created by ZCP on 2015/11/18.
 * mail:43426073@qq.com
 */
public class SampleApplication extends Application {

    @Override
    public void onCreate() {
        super.onCreate();
        init();
    }

    /**
     * 初始化整个APP。
     */
    private void init() {
        SharedPreferencesUtil.initSharedPreferencesUtil(this);
        ToastUtil.initToastUtil(this);
        Fresco.initialize(this);
        VolleyUtil.initVolleyUtil(this);
    }
}
